<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<meta name="viewport" content="">
	<title>首页</title>
	<div th:include="wechat/include/exportStatic :: static()"></div>
    <link rel="stylesheet" type="text/css" href="../css/index.css">
</head>
<body>
	<div id="index">
		<header>
			<div class="top">
				<div class="address">
					<span th:text="${session.wechatUser.userCity}"></span>
				</div>
				<div class="action">
					<a href="javascript:;"> 发布</a>
				</div>
			</div>
			<div class="weather">
				<p th:text="${session.wechatUser.userProvince}"></p>
			</div>
		</header>
		<main>
			<section class="menu">
				<ul class="menu-list">
					<li class="menu-item">
						<a href="/wechat/post?type=findcar">
							<img src="/img/sfc.png">
						</a>
						<span>顺风车</span>
					</li>
					<li class="menu-item">
						<a href="/wechat/post?type=job">
							<img src="/img/zpqz.png">
						</a>
						<span>招聘求职</span>
					</li>
					<li class="menu-item">
						<a href="/wechat/post?type=house">
							<img src="/img/fcjy.png">
						</a>
						<span>房产交易</span>
					</li>
					<li class="menu-item">
						<a href="/wechat/post?type=buss">
							<img src="/img/syzr.png">
						</a>
						<span>生意转让</span>
					</li>
					<li class="menu-item">
						<a href="/wechat/post?type=account">
							<img src="/img/dzyh.png">
						</a>
						<span>打折优惠</span>
					</li>
					<li class="menu-item">
						<a href="/wechat/post?type=buycar">
							<img src="/img/cljy.png">
						</a>
						<span>车辆交易</span>
					</li>
					<li class="menu-item">
						<a href="/wechat/post?type=goods">
							<img src="/img/wpjy.png">
						</a>
						<span>物品交易</span>
					</li>
					<li class="menu-item">
						<a href="/wechat/post?type=girl">
							<img src="/img/jyzh.png">
						</a>
						<span>交友征婚</span>
					</li>
				</ul>
			</section>
			<section class="search">
				<input type="text" name="" placeholder="请输入关键字">
				<label></label>
			</section>
			<section class="news-container">
				<h3>
					<span th:text="${session.wechatUser.userCity + '最新信息'}"></span>
				</h3>
				<div class="news-list">
					<div class="news-item" th:each="post : ${posts}">
						<h4 th:text="${post.postTitle}"></h4>
						<div class="overview">
							<p class="text">
								<em>顶</em>
								<span th:text="${post.postContent}"></span>
							</p>
							<p class="date" th:text="${#dates.format(post.createTime, 'yyyy-MM-dd')}"></p>
						</div>
						<img class="icon" th:src="${post.postImg}" onerror="javascript:this.src='/img/news01.jpg';">
					</div>
				</div>
			</section>
		</main>
		<div th:include="wechat/include/footer :: footer(1)"></div>
	</div>
</body>
</html>